<template>
  <div>
    <h1 class="hh1">{{user.username}}</h1>
    <h1 class="hh2">欢迎回来</h1>
    <Calendar></Calendar>
  </div>
</template>

<script>
import Calendar from './checkCalendar'
export default {
  data() {
    return {
      user: {},
    }
  },
  components: {
    Calendar,
  },
  created() {
    this.user = JSON.parse(window.localStorage.getItem('user'))
  },
  methods: {},
}
</script>

<style lang="less" scoped>
.hh1 {
  position: absolute;
  left: 50%;
  top: 73%;
  transform: translate(-50%, -50%);
}
.hh2 {
  position: absolute;
  left: 50%;
  top: 80%;
  transform: translate(-50%, -50%);
}
</style>